﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web;

namespace JzSport.Api.Params
{
    public class SearchUserParams : IActionParams
    {
        public int Page { get; set; }
        public string Filter { get; set; }

        public void ParseQueryString(HttpRequest request)
        {
            this.Page = Convert.ToInt32(request.QueryString["op:Page"]);
            this.Filter = request.QueryString["op:filter"];
        }

        public void ParseForm(HttpRequest request)
        {
            this.Page = Convert.ToInt32(request.Form["op:Page"]);
            this.Filter = request.Form["op:filter"];
        }
    }
}
